package com.hgx.wsdl.weather.client;

import cn.com.webxml.ArrayOfString;
import cn.com.webxml.WeatherWS;
import cn.com.webxml.WeatherWSSoap;

import java.util.List;

public class WeatherClient {

    public static void main(String[] args) {

        WeatherWSSoap weatherWSSoap = new WeatherWS().getWeatherWSSoap();

//       ArrayOfString arrayOfString = weatherWSSoap.getRegionCountry();
//        List<String> list = arrayOfString.getString();
//
//        for (String result : list) {
//            System.out.println(result);
//        }

//
//        ArrayOfString arrayOfString1 =  weatherWSSoap.getRegionProvince() ;
//
//
//        List<String> list1 = arrayOfString1.getString();
//        for (String s:
//             list1) {
//            System.out.println(s);
//        }

//
//        ArrayOfString arrayOfString2 =  weatherWSSoap.getSupportCityString("311104") ;
//
//        List<String> list2 = arrayOfString2.getString();
//        for (String s:
//             list2) {
//            System.out.println(s);
//        }

        ArrayOfString arrayOfString3 = weatherWSSoap.getWeather("1605","123123123") ;
        List<String> list3 = arrayOfString3.getString();
        for (String s:
                list3) {
            System.out.println(s);
        }

    }

}
